using System;
using FytSoa.Common.Utils;
using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Application.Erp;

/// <summary>
/// erp-销售退货明细表
/// </summary>
public class ErpSalesReturnItemDto : AppEntity
{
    /// <summary>
    /// 退货单号
    /// </summary>
    [Required]
    public long ReturnId { get; set; } = 0;

    /// <summary>
    /// 产品ID
    /// </summary>
    [Required]
    public long ProductId { get; set; } = 0;
    
    /// <summary>
    /// 产品信息
    /// </summary>
    public ErpProductSimpleDto Product { get; set; }

    /// <summary>
    /// 退货数量
    /// </summary>
    [Required]
    public int ReturnQty { get; set; } = 0;

    /// <summary>
    /// 原订单单价
    /// </summary>
    [Required]
    public decimal OriginalPrice { get; set; } = 0;

}